package com.easyhome.common.timer;

import java.util.Objects;

/**
 * 为了兼容原有schedulerx代码
 *
 * @author wangshufeng
 */
public class ProcessResult {
    private Boolean status;
    private String result;

    public ProcessResult(boolean status) {
        this.status = status;
    }

    /**
     * @param status
     * @param result, the size should less than 1000 bytes
     * @throws Exception
     */
    public ProcessResult(boolean status, String result) {
        this.status = status;
        this.result = result;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    @Override
    public String toString() {
        return "ProcessResult [status=" + status + ", result=" + result + "]";
    }
}
